package com.itheima.d08_decorator.decorator;

import com.itheima.d08_decorator.HeroStatusBase;

/**
 * 装饰者父类
 */
public abstract class Status  implements HeroStatusBase {

    //维护基类
    private HeroStatusBase hero;


    public Status(HeroStatusBase hero) {
        this.hero = hero;
    }

    @Override
    public void nowStatus() {
       hero.nowStatus();
    }

    @Override
    public int nowHurt() {
        return hero.nowHurt();
    }
}
